<% if session[:user_id].nil? %>
	<a href="https://webapps.unibe.ch/a3ublogin2/login.jsp?appid=ethikreview">Login für Reviewer <img src="/images/silk/door_in.png"> </a>
<% end %>


<% unless session[:user_id].nil? %>

	<%= link_to '<img src="/images/silk/door_out.png"> Logout', "/logout", :confirm => 'Are you sure?' %>



	<% if @user.role == "admin"%>
		<% if controller_name == "admin" %>
			<%= link_to '<img src="/images/silk/arrow_out.png"> Admin', "/admin/overview", :class => "active" %>
		<% else%>
			<%= link_to '<img src="/images/silk/arrow_out.png"> Admin', "/admin/overview" %>
		<% end %>
	<% end %>
	
	
	
	<% if @user.role != ""%>
		<% if controller_name == "review" %>
			<%= link_to '<img src="/images/silk/flag_green.png"> Review machen', "/review",  :class => "active" %>
		<% else%>
			<%= link_to '<img src="/images/silk/flag_green.png"> Review machen', "/review"%>
		<% end %>
	<% end %>
	
	
	
	
	<% unless @user.role == "" %>
		<% if controller_name == "submit" %>
			<%= link_to '<img src="/images/silk/add.png"> Antrag einreichen', "/submit/start", :class => "active"  %>
		<% else %>
			<%= link_to '<img src="/images/silk/add.png"> Antrag einreichen', "/submit/start"%>
		<% end %>
	<%  end %> 
	
	
<% end %>
	

